import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, IndexRoute, hashHistory,Redirect} from 'react-router';

import Index from './components/Main';
import Recharge from './components/Recharge';
import FindPw from './components/FindPw';
import register from './components/Regiest';
import Parent from './components/Parent';
import News from './components/News';
import News_1 from './components/News_1';
import News_2 from './components/News_2';
import News_3 from './components/News_3';
import News_4 from './components/News_4';
import Product from './components/Product';
import Product_1 from './components/Product_1';
import Product_2 from './components/Product_2';
import Product_3 from './components/Product_3';
import Product_4 from './components/Product_4';
import Product_5 from './components/Product_5';
import Product_6 from './components/Product_6';
import Login from './components/Login';
import About from './components/About';
import Recruit from './components/Recruit';
import Kefu from './components/Kefu';
import UserAgreement from './components/UserAgreement';
import xkz from './components/xkz';
// Render the main component into the dom
ReactDOM.render(
  <Router history={hashHistory}>
    <Route path="/" component={Index}/>
    <Route path="/recharge" component={Recharge}/>
    <Route path="/findPw" component={FindPw}/>
    <Route path="/register" component={register}/>
    <Route path="/parent" component={Parent}/>
    <Route path="/news" component={News}/>
    <Route path="/news_1" component={News_1}/>
    <Route path="/news_2" component={News_2}/>
    <Route path="/news_3" component={News_3}/>
    <Route path="/news_4" component={News_4}/>
    <Route path="/product" component={Product}/>
    <Route path="/product_1" component={Product_1}/>
    <Route path="/product_2" component={Product_2}/>
    <Route path="/product_3" component={Product_3}/>
    <Route path="/product_4" component={Product_4}/>
    <Route path="/product_5" component={Product_5}/>
    <Route path="/product_6" component={Product_6}/>
    <Route path="/login" component={Login}/>
    <Route path="/recruit" component={Recruit}/>
    <Route path="/kefu" component={Kefu}/>
    <Route path="/about" component={About}/>
    <Route path="/userAgreement" component={UserAgreement}/>
    <Route path="/xkz" component={xkz}/>
  </Router>
  , document.getElementById('app'));
